/*
 * usart_debug.h
 * Project: wifi_module_code
 * Created on: Apr 5, 2013
 * Author: vagabond
 */

#ifndef USART_DEBUG_H_
#define USART_DEBUG_H_

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "stm32f4_discovery.h"


/**
 * @brief Use EVAL_COM1 as DEBUG COM
 */

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/

/* Definition for USARTWIFI resources ********************************************/
#define USART_DEBUG                           USART6
#define USART_DEBUG_CLK                       RCC_APB2Periph_USART6
#define USART_DEBUG_CLK_INIT                  RCC_APB2PeriphClockCmd
#define USART_DEBUG_IRQn                      USART6_IRQn
#define USART_DEBUG_IRQHandler                USART6_IRQHandler

#define USART_DEBUG_TX_PIN                    GPIO_Pin_6
#define USART_DEBUG_TX_GPIO_PORT              GPIOC
#define USART_DEBUG_TX_GPIO_CLK               RCC_AHB1Periph_GPIOC
#define USART_DEBUG_TX_SOURCE                 GPIO_PinSource6
#define USART_DEBUG_TX_AF                     GPIO_AF_USART6

#define USART_DEBUG_RX_PIN                    GPIO_Pin_7
#define USART_DEBUG_RX_GPIO_PORT              GPIOC
#define USART_DEBUG_RX_GPIO_CLK               RCC_AHB1Periph_GPIOC
#define USART_DEBUG_RX_SOURCE                 GPIO_PinSource7
#define USART_DEBUG_RX_AF                     GPIO_AF_USART6


/* Exported variables --------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void usartDebugConfiguration(void);

#endif /* USART_DEBUG_H_ */
